package com.okyai.qa.domain;

import java.util.ArrayList;
import java.util.List;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import com.alibaba.fastjson.annotation.JSONField;
import com.okyai.common.annotation.Excel;
import com.okyai.common.core.domain.BaseEntity;

/**
 * 问卷题目对象 qa_questionnaire_questions
 * 
 * @author okyai
 * @date 2021-03-16
 */
public class QuestionnaireQuestions extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 题目主键 */
    private Long questionsId;

    /** 问卷主键 */
    @Excel(name = "问卷主键")
    private Long questionnaireId;

    /** 题目序号 */
    @Excel(name = "题目序号")
    private Integer questionsIndex;

    /** 题目标题 */
    @Excel(name = "题目标题")
    private String title;

    /** 题目组 */
    @Excel(name = "题目组")
    private String titleGroup;

    /** 题目分值 */
    @Excel(name = "题目分值")
    private Long totalScore;

    /** 题目类型[00标题01单选02多选03填空04判断] */
    @Excel(name = "题目类型[00标题01单选02多选03填空04判断]")
    private String questionsType;

    /** 展示方式[01 默认02表格] */
    @Excel(name = "展示方式[01 默认02边框]")
    private String showType;

    /** 答案样式[01横排 02竖排] */
    @Excel(name = "答案样式[01 1行1题  02 1行2题 03 3 1行3题 04 1行4题 ]")
    private String showStyle;

    /** 是否展示标题 */
    @Excel(name = "是否展示标题")
    private String isShowTitle;

    /** 答案 */
    @Excel(name = "答案")
    private String answer;

    /** 答案信息 */
    @JSONField(serialize=false)
    private List<QuestionnaireAnswers> questionnaireAnswersList = new ArrayList<>();
    

    public void setQuestionsId(Long questionsId) 
    {
        this.questionsId = questionsId;
    }

    public Long getQuestionsId() 
    {
        return questionsId;
    }
    public void setQuestionnaireId(Long questionnaireId) 
    {
        this.questionnaireId = questionnaireId;
    }

    public Long getQuestionnaireId() 
    {
        return questionnaireId;
    }
    public void setQuestionsIndex(Integer questionsIndex) 
    {
        this.questionsIndex = questionsIndex;
    }

    public Integer getQuestionsIndex() 
    {
        return questionsIndex;
    }
    public void setTitle(String title) 
    {
        this.title = title;
    }

    public String getTitle() 
    {
        return title;
    }
    public void setTitleGroup(String titleGroup) 
    {
        this.titleGroup = titleGroup;
    }

    public String getTitleGroup() 
    {
        return titleGroup;
    }
    public void setTotalScore(Long totalScore) 
    {
        this.totalScore = totalScore;
    }

    public Long getTotalScore() 
    {
        return totalScore;
    }
    public void setQuestionsType(String questionsType) 
    {
        this.questionsType = questionsType;
    }

    public String getQuestionsType() 
    {
        return questionsType;
    }
    public void setShowType(String showType) 
    {
        this.showType = showType;
    }

    public String getShowType() 
    {
        return showType;
    }
    public void setShowStyle(String showStyle) 
    {
        this.showStyle = showStyle;
    }

    public String getShowStyle() 
    {
        return showStyle;
    }
    public void setIsShowTitle(String isShowTitle) 
    {
        this.isShowTitle = isShowTitle;
    }

    public String getIsShowTitle() 
    {
        return isShowTitle;
    }
    public void setAnswer(String answer) 
    {
        this.answer = answer;
    }

    public String getAnswer() 
    {
        return answer;
    }

    public List<QuestionnaireAnswers> getQuestionnaireAnswersList()
    {
        return questionnaireAnswersList;
    }

    public void setQuestionnaireAnswersList(List<QuestionnaireAnswers> questionnaireAnswersList)
    {
        this.questionnaireAnswersList = questionnaireAnswersList;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("questionsId", getQuestionsId())
            .append("questionnaireId", getQuestionnaireId())
            .append("questionsIndex", getQuestionsIndex())
            .append("title", getTitle())
            .append("titleGroup", getTitleGroup())
            .append("totalScore", getTotalScore())
            .append("questionsType", getQuestionsType())
            .append("showType", getShowType())
            .append("showStyle", getShowStyle())
            .append("isShowTitle", getIsShowTitle())
            .append("answer", getAnswer())
            .append("questionnaireAnswersList", getQuestionnaireAnswersList())
            .toString();
    }
}